package com.liang.design.impl;

import com.liang.design.OrderAdapterService;
import org.itstack.demo.design.mq.OrderMq;
import org.itstack.demo.design.service.OrderService;

/**
 * @author lsm
 * @ClassName InsideOrderService.java
 * @Description TODO
 * @createTime 2023年12月03日 20:54:00
 */
public class InsideOrderService implements OrderAdapterService {

    private OrderService orderService = new OrderService();

    @Override
    public boolean isFirst(String uId) {

        return orderService.queryUserOrderCount(uId)<=1;
    }
}
